package com.itcast.parser;

import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

import com.alibaba.fastjson.JSON;
import com.itcast.vo.HomeGallery;

public class HomeFiveParser extends BaseParser<List<HomeGallery>> {

	@Override
	public List<HomeGallery> parseJSON(String paramString) throws JSONException {
		if(super.checkResponse(paramString)==null){
			return null;
		}else{
			JSONObject jsonObject = new JSONObject(paramString);
			String home_banner = jsonObject.getString("home_banner");
			List<HomeGallery> homeGalleryList = JSON.parseArray(home_banner, HomeGallery.class);
			return homeGalleryList;
		}
	}

}
